import type {ResponseInter} from "@/api/commonInterFace.ts";

export interface permissionMenuInter {
    id?: number,
    createTime?: string,
    updateTime?: string,
    pid: number,
    name: string,
    code: null,
    toCode: null,
    type: number
    status: null,
    level: number,
    children?: permissionMenuInter[],
    select: boolean
}

export interface permissionMenuResponseInter extends ResponseInter {
    data: permissionMenuInter[]
}

// 添加和修改的类型
export interface menuAddOrUpdateInter {
    id?: number,
    name: string,
    code: string,
    level: number,
    pid: number
}

